package com.aaa.service;

import com.aaa.entity.Discuss;
import com.aaa.util.DefaultMsg;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 *评论管理service接口
 */
@Mapper
public interface DiscussService extends IService<Discuss> {
    /**
     * 查询所有评论
     * @param keyword
     * @return
     */
    public List<Discuss> listAll(String keyword);

    /**
     * 删除评论
     * @param did
     * @return
     */
    public DefaultMsg delete(Integer did);
}
